def str_reverse(s):
    """
    字符串翻转
    :param s:
    :return:
    """
    return s[::-1]


def substr(s, x, y):
    """
    字符串切片
    :param s:
    :param x:
    :param y:
    :return:
    """
    return s[x:y]
